home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
User's Choice Windows CD
/
User's Choice Windows CD (CMS Software)(1993).iso
/
misc2
/
ole_101.zip
/
SCHMOO.ZIP
/
OLEEXIT.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-04-13
|
1KB
|
51 lines
/*
* OLEEXIT.C
*
* Functions for final OLE cleanup.
*
* Copyright(c) Microsoft Corp. 1992 All Rights Reserved
*
*/
#ifdef MAKEOLESERVER
#include <windows.h>
#include <ole.h>
#include "schmoo.h"
#include "oleglobl.h"
/*
* FOLEExit
*
* Purpose:
* Handles OLE-server specific shutdown
* 1. Free the OLESERVER structure.
* 2. Free the procedure instances the server's VTBLs.
*
* Parameters:
* pOLE LPXOLEGLOBALS to OLE-specific global variable block.
*
* Return Value:
* BOOL FALSE if an error occurred, otherwise TRUE.
*/
BOOL FAR PASCAL FOLEExit(LPXOLEGLOBALS pOLE)
{
/*
* Dump the server. We depend on ServerRelease and DocRelease to
* clean up documents and objects. Choosing File/Exit has already
* revoked the server. This is simply final cleanup.
*/
LocalFree(pOLE->pSvr->hMem);
OLEVtblFreeServer (&pOLE->vtblSvr);
OLEVtblFreeDocument(&pOLE->vtblDoc);
OLEVtblFreeObject (&pOLE->vtblObj);
return TRUE;
}
#endif //MAKEOLESERVER